/* 用户中心样式文件 */

/* 基础容器样式 */
.user-center-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 用户头部样式 - 桌面收藏 */
.user-header.desktop-favorites {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

/* 用户头部样式 - 手机收藏 */
.user-header.mobile-favorites {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

/* 用户头部样式 - 桌面下载 */
.user-header.desktop-downloads {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

/* 用户头部样式 - 手机下载 */
.user-header.mobile-downloads {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

/* 用户头部样式 - 电脑生成 */
.user-header.generate-desktop {
    background: linear-gradient(135deg, #17a2b8 0%, #009688 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

/* 用户头部样式 - 手机生成 */
.user-header.generate-mobile {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

/* 通用用户头部样式 */
.user-header {
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
}

/* 内容容器 */
.content-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 30px;
}

/* 桌布网格布局 - 桌面版本 */
.wallpaper-grid.desktop {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 桌布网格布局 - 手机版本 */
.wallpaper-grid.mobile {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 通用桌布网格 */
.wallpaper-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

/* 桌布卡片 */
.wallpaper-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.wallpaper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 桌布图片容器 - 桌面版本 */
.wallpaper-image.desktop {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

/* 桌布图片容器 - 手机版本 */
.wallpaper-image.mobile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 9/16;
}

/* 通用桌布图片容器 */
.wallpaper-image {
    position: relative;
    overflow: hidden;
}

.wallpaper-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wallpaper-card:hover .wallpaper-image img {
    transform: scale(1.05);
}

/* 桌布信息 */
.wallpaper-info {
    padding: 15px;
}

/* 桌布标题 - 桌面版本 */
.wallpaper-title.desktop {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 桌布标题 - 手机版本 */
.wallpaper-title.mobile {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 通用桌布标题 */
.wallpaper-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 桌布元信息 - 桌面版本 */
.wallpaper-meta.desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

/* 桌布元信息 - 手机版本 */
.wallpaper-meta.mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
}

/* 通用桌布元信息 */
.wallpaper-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
}

/* 桌布统计信息 - 桌面版本 */
.wallpaper-stats.desktop {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
}

/* 桌布统计信息 - 手机版本 */
.wallpaper-stats.mobile {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #888;
}

/* 通用桌布统计信息 */
.wallpaper-stats {
    display: flex;
    color: #888;
}

/* 移除按钮 */
.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    color: #dc3545;
}

.wallpaper-card:hover .remove-btn {
    opacity: 1;
}

.remove-btn:hover {
    background: #dc3545;
    color: white;
}

/* 收藏标识 */
.favorite-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* 下载标识 - 桌面版本 */
.download-badge.desktop {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* 下载标识 - 手机版本 */
.download-badge.mobile {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(111, 66, 193, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* 通用下载标识 */
.download-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* 下载时间 - 桌面版本 */
.download-time.desktop {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
}

/* 下载时间 - 手机版本 */
.download-time.mobile {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 10px;
}

/* 通用下载时间 */
.download-time {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ddd;
}

/* 导航链接 */
.nav-links {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* 导航链接悬停 - 桌面收藏 */
.nav-link:hover.desktop-favorites,
.nav-link.active.desktop-favorites {
    background: #007bff;
    color: white;
}

/* 导航链接悬停 - 手机收藏 */
.nav-link:hover.mobile-favorites,
.nav-link.active.mobile-favorites {
    background: #dc3545;
    color: white;
}

/* 导航链接悬停 - 桌面下载 */
.nav-link:hover.desktop-downloads,
.nav-link.active.desktop-downloads {
    background: #28a745;
    color: white;
}

/* 导航链接悬停 - 手机下载 */
.nav-link:hover.mobile-downloads,
.nav-link.active.mobile-downloads {
    background: #6f42c1;
    color: white;
}

/* 导航链接悬停 - 电脑生成 */
.nav-link:hover.generate-desktop,
.nav-link.active.generate-desktop {
    background: #17a2b8;
    color: white;
}

/* 导航链接悬停 - 手机生成 */
.nav-link:hover.generate-mobile,
.nav-link.active.generate-mobile {
    background: #ff9800;
    color: white;
}

/* 通用导航链接悬停 */
.nav-link:hover {
    color: white;
}

.nav-link.active {
    color: white;
}

/* 生成桌布提示文本 */
.wallpaper-prompt {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    font-size: 12px;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 14px;
}

.clear-all-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.clear-all-btn:hover {
    background: #c82333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-center-container {
        padding: 10px;
    }
    
    .user-header {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .content-container {
        padding: 20px;
    }
    
    .wallpaper-grid.desktop {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .wallpaper-grid.mobile {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
} 